//首页样式less文件
// 引入'commmon.css';
@import "common";

body {
    min-width: 320px;
    width: 15rem;
    margin: 0 auto;
    line-height: 1.5;
    background: #f2f2f2;
    font-family: Arial, Helvetica;
}

// 头部样式
@basefont-size: 50;

.search-content {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15rem;
    height: (88rem / @basefont-size);
    background-color: #ffc001;

    // border-bottom: 1px solid #e5e5e5;
    .classify {
        width: (44rem / @basefont-size);
        height: (70rem / @basefont-size);
        background: url(../images/classify.png) no-repeat;
        background-size: cover;
        margin: (11rem/@basefont-size) (25rem/@basefont-size) (7rem/@basefont-size) (24rem/@basefont-size);
    }

    .search-box {
        flex: 1;

        input {
            outline: none;
            width: 100%;
            border: 0;
            height: (66rem / @basefont-size);
            border-radius: (33rem / @basefont-size);
            background-color: #FFF2CC;
            margin-top: (12rem / @basefont-size);
            font-size: (25rem / @basefont-size);
            padding-left: (55rem / @basefont-size);
            color: #757575;
            font-size: (25rem / @basefont-size);
            padding-left: (55rem / @basefont-size);
            color: #757575;
        }
    }

    .login {
        width: (75rem / @basefont-size);
        height: (70rem / @basefont-size);
        line-height: (70rem / @basefont-size);
        margin: (7.5rem / @basefont-size);
        font-size: (25rem / @basefont-size);
        color: #fff;
        text-align: center;
    }
}

.banner {
    width: (750rem / @basefont-size);
    height: (368rem / @basefont-size);

    img {
        width: 100%;
        height: 100%;
    }
}

.ad {
    display: flex;

    a {
        flex: 1;

        img {
            width: 100%;
        }
    }
}

.nav {
    width: (750rem/@basefont-size);

    a {
        float: left;
        width: (150rem/@basefont-size);
        height: (140rem/@basefont-size);
        text-align: center;

        img {
            display: block;
            width: (82rem/@basefont-size);
            height: (82rem/@basefont-size);
            margin: (10rem/@basefont-size) auto 0;
        }

        span {
            font-size: (25rem/@basefont-size);
            color: #333;

        }


    }

}